package com.thememaker.lockstyle.bean;

import com.thememaker.lockstyle.bean.animation.VariableAnimation;
import com.thememaker.lockstyle.bean.ui.BaseView;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by jiajun.jiang on 2018/2/22.
 */
@XmlRootElement(name = "Var")
public class Var extends BaseView {
    private String expression;
    private String type;
    private String constString;
    private String threshold;
    private String persist;

    private VariableAnimation variableAnimation;

    @XmlAttribute(name = "expression")
    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    @XmlAttribute(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @XmlAttribute(name = "const")
    public String getConstString() {
        return constString;
    }

    public void setConstString(String constString) {
        this.constString = constString;
    }

    @XmlAttribute(name = "threshold")
    public String getThreshold() {
        return threshold;
    }

    public void setThreshold(String threshold) {
        this.threshold = threshold;
    }

    @XmlAttribute(name = "persist")
    public String getPersist() {
        return persist;
    }

    public void setPersist(String persist) {
        this.persist = persist;
    }

    @XmlElement(name = "VariableAnimation")
    public VariableAnimation getVariableAnimation() {
        return variableAnimation;
    }

    public void setVariableAnimation(VariableAnimation variableAnimation) {
        this.variableAnimation = variableAnimation;
    }

    public Var() {
    }
}
